<?php
//error_reporting(E_ERROR|E_PARSE);
header("Content-Type:text/html; charset=utf-8");
session_start();
if($_SESSION["islogin"]!=='igiveyouthepower'){
echo "<script language=JavaScript>\r\n";
echo "alert('请先登录');\r\n";
echo "location.href='../index.php'\r\n";
echo "</script>";
}else{
$lang=$_GET["lang"];
$bname=$_GET["bname"];
$platform=$_REQUEST["platform"];
if($_REQUEST["lang"]==""||!isset($_REQUEST["lang"])){$lang="products";}else{$lang=$_REQUEST["lang"];}
if(empty($platform)){$platform="AliExpress";}
?>
<link href="../css/mcommon.css" rel="stylesheet" title="" type="text/css" />
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td height="100"><div align="center">批量替换该分类下所有产品字符</div></td>
  </tr>
  <tr>
    <td height="100"><div align="center">
      <form id="form1" name="form1" method="post" action="replacepro.php?lang=<?php echo $lang;?>&bname=<?php echo $bname;?>&platform=<?php echo $platform;?>">
        需要替换的字符：
          <input name="oldstr" type="text" id="oldstr" />
        替换后的字符：
        <input name="newstr" type="text" id="newstr" />
  <input type="submit" name="Submit" value="批量替换" />
      </form>
    </div></td>
  </tr>
</table>
<div align="center">
  <?php }?>
</div>
